﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Please choose option");
            Console.WriteLine("1.Deposit");
            Console.WriteLine("2.Natural number");
            Console.WriteLine("3.Biology");
            int option = int.Parse(Console.ReadLine());
            Console.Clear();
            switch (option)
            {
                case 1:
                    Deposit();
                    break;

                case 2:
                    naturalNumber();
                    break;
                case 3:
                    Biology();
                    break;
                default:
                    Console.WriteLine("Choose number 1-3");
                    break;
            }
        }

        static void Deposit()

        {
            Console.WriteLine("Enter the deposit size");
            decimal money = decimal.Parse(Console.ReadLine());
            Console.WriteLine("Enter the number of years");
            decimal year = decimal.Parse(Console.ReadLine());

            year = year * 3 / 100;
            decimal finalDeposit = money * (1 + year);

            Console.WriteLine(finalDeposit);
        }

        static void naturalNumber()

        {
            for (int i = 20; i < 50; i++)
            {
                if (i % 3 == 0)
                {
                    if (i % 5 != 0)
                    {
                        Console.WriteLine(i);
                    }
                }
            }
            Console.ReadKey();
        }

        static void Biology()

        {
            int amoeba = 1;
            for (int hours = 0; hours <= 24; hours += 3)
            {
                amoeba = amoeba * 2;
                Console.WriteLine(amoeba);
            }
            Console.ReadKey();
        }
    }
}
